package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;

import com.itheima.pojo.User;

public interface UserService {
    public User findByUsername(String username);

    PageResult findPage(QueryPageBean queryPageBean);

    void add(User user, Integer[] roleIds) throws Exception;

    User findById(Integer userId);

    Integer[] findRoleIdsByUserId(Integer userId);

    void edit(User user, Integer[] roleIds);

    void deleteById(Integer id);


}
